@import '_variables.scss';

.btn{
  display: inline-block;
  height: 42px;
  width: 200px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 42px;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-image: none;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary{
  color: #fff;
  background-color: $color_bule;
  border-color: $color_bule;
  &:hover{
    color: #fff;
    text-decoration: none;
  }
}
.btn-cancel{
  border: 1px solid $color_bule;
  color: $color_bule;
  background-color: #fff;
  a{
    display: block;
    text-decoration: none
  }
}
.btn-green{
  
  border: 1px solid $color_green;
  color: #fff;
  background-color: $color_green
}
.btn-disable{
  color: #fff;
  background-color: $color_d8d8;
  border-color: $color_d8d8;
}
.btn-red{
  color: #fff;
  background-color: $color_red;
  border-color: $color_red;
}
.btn-tabs{
  line-height: 32px !important;
  height: 32px !important;
  width: 65px;
  margin-right: 2px;    
}
.btn-preview{
  @extend .btn-primary;
  width: 75px;
  height: 32px;
  line-height: 32px;
}
.btn-preview-disable{
  @extend .btn-disable;
  width: 75px;
  height: 32px;
  line-height: 32px;
}
.btn-message{
  border: 1px solid #d8d8d8;
  width: 180px;
  color: $color_green;
  font-size: 16px;
  text-align: left;
  padding-left: 20px;
  margin-right: 27px;
  cursor: text;
}

/*form*/
.control-label,.input-group,.form-error{
  display: inline-block;
}
.control-label{
  width: 90px
}
.input-group{
  vertical-align: middle;
}

.f-group-290{
  .input-group{
    width: 290px;
  }
}

.fadeInRight{
  margin-left: 10px;
}
.f-group-480{
  .form-out-error{
    margin-left: -370px;
  }
}
.f-group-480 {
  .input-group{
    width: 900px;
  }
  input,textarea{
    width: 480px !important;
  }
  .form-error{
    height: 40px;
    line-height: 40px;
  }

}

.f-group-590 {
  .input-group{
    width: 900px;
  }
  input{
    width: 590px !important;
  }
  .form-error{
    height: 40px;
    line-height: 40px;
    margin-left: 10px;
  }
}
.f-group-160{
  .input-group{
    width: 160px;
    margin: auto 12px;
  }
  input{
    width: 160px !important;
  }
  .mt-input{
    display: inline-block;
  }
}
/*上传附件*/
 .default-upload-button{
  height: 20px;
  display: inline-block;
  width: 100px;
  position: relative;
  cursor: pointer;  
 }
#defualt_upload{
  position: absolute;
  top: 0;
  opacity: 0;
  left: 0;
  width: 100px;
  height: 20px;
}
#upload_file{
  position: absolute;
  top: 0;
  width: 160px;
  height: 42px;
  left: 0;
  bottom: 0;
  opacity: 0;
}

/* fixed-width-text */
.fixed-width-text{
  display: inline-block;
  max-width: 130px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.init-message{
  font-size: 16px;
  color: #9b9b9b;
}
.disable-message{
  font-size: 14px;
  color: #9b9b9b;
}
/*查询input*/
.search-group{
  width: 200px;
  .mt-input{
    width: 150px;
    display: inline-block;
    vertical-align: middle
  }
  input{
    height: 42px;
  }
  button{
    width: 42px;
    height: 42px;
    background-color: $color_bule;
  }
}

.disabel-a{
  color: #acacac;
  text-decoration: underline;
}
.no-data-message{
  text-align: center;
  color: #a8a8a8;
  margin-top: 65px;
}
tr:hover{
  .disabel-a{
    color: #508ef2;
  }
}

.max-font {
    display: block;
    width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*input radio*/
.radio-block{
  position: relative;
  display: inline-block;
  input{
    position: absolute;
    left: 2px;
    top: 2px;
    opacity: 0;
  }
}
.radio-inner{
  position: relative;
  top: 0;
  left: 0;
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 16px;
  border: 1px solid #979797;
  background-color: #fff;
}
.radio-inner1{
  position: absolute;
  top: 3px;
  left: 3px;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background-color: #508ef2;
}
/*.radio-inner:after {
    position: absolute;
    width: 6px;
    height: 6px;
    left: 3px;
    top: 3px;
    border-radius: 6px;
    display: table;
    border-top: 0;
    border-left: 0;
    content: ' ';
    background-color: #2db7f5;
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}*/